# -*- coding: utf-8 -*-

from PyQt4 import QtCore, QtGui

from images import images_rc

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s


class UiSearchDb(object):

    def __init__(self):
        """
        
        """
        self.iconImage()



    def iconImage(self):
        """
            Carrega os icones dos botoes da tela principal.
        """
        self.pushButtonPesquisarIcon = QtGui.QIcon(":/vna-icon/ok.png")



    def setupUi(self, Dialog):
        """
        
        """
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(453, 551)
        
        sizePolicy = QtGui.QSizePolicy(
                                       QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(200)
        sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth())
        Dialog.setSizePolicy(sizePolicy)
        
        self.tableWidget = QtGui.QTableWidget(Dialog)
        self.tableWidget.setGeometry(QtCore.QRect(10, 240, 431, 291))
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        
        self.line = QtGui.QFrame(Dialog)
        self.line.setGeometry(QtCore.QRect(9, 210, 431, 20))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setGeometry(QtCore.QRect(20, 10, 201, 151))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(40, 30, 130, 20))
        
        font = QtGui.QFont()
        font.setPointSize(14)
        
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        
        self.comboBoxPesquisar = QtGui.QComboBox(self.groupBox)
        self.comboBoxPesquisar.setGeometry(QtCore.QRect(40, 70, 130, 25))
        self.comboBoxPesquisar.setObjectName(_fromUtf8("comboBoxPesquisar"))
        
        self.pushButtonPesquisar = QtGui.QPushButton(Dialog)
        self.pushButtonPesquisar.setGeometry(QtCore.QRect(180, 170, 100, 41))
        self.pushButtonPesquisar.setMouseTracking(True)
        self.pushButtonPesquisar.setObjectName(_fromUtf8("pushButtonPesquisar"))
        self.pushButtonPesquisar.setIconSize(QtCore.QSize(32, 32))
        self.pushButtonPesquisar.setIcon(
                                         QtGui.QIcon(
                                         self.pushButtonPesquisarIcon))
        
        self.groupBox_2 = QtGui.QGroupBox(Dialog)
        self.groupBox_2.setGeometry(QtCore.QRect(230, 10, 201, 151))
        
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        
        self.label1 = QtGui.QLabel(self.groupBox_2)
        self.label1.setGeometry(QtCore.QRect(30, 30, 151, 16))
        
        font = QtGui.QFont()
        font.setPointSize(12)
        
        self.label1.setFont(font)
        self.label1.setObjectName(_fromUtf8("label1"))
        
        self.lineEdit1 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit1.setGeometry(QtCore.QRect(30, 50, 71, 20))
        self.lineEdit1.setObjectName(_fromUtf8("lineEdit1"))
        
        self.label2 = QtGui.QLabel(self.groupBox_2)
        self.label2.setGeometry(QtCore.QRect(30, 80, 151, 16))
        
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label2.setFont(font)
        self.label2.setObjectName(_fromUtf8("label2"))
        
        self.lineEdit2 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit2.setGeometry(QtCore.QRect(30, 100, 71, 20))
        self.lineEdit2.setObjectName(_fromUtf8("lineEdit2"))
        
        self.treeWidget = QtGui.QTreeWidget(self.groupBox_2)
        self.treeWidget.setGeometry(QtCore.QRect(10, 20, 181, 121))
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.headerItem().setText(0, _fromUtf8("Faixa dos Produtos"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        
        self.dialog = Dialog



    def retranslateUi(self, Dialog):
        """
        
        """
        Dialog.setWindowTitle(
                              QtGui.QApplication.translate(
                              "Dialog",
                              "TSM - Pesquisa",
                              None, 
                              QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
                           QtGui.QApplication.translate(
                           "Dialog",
                           "Pesquisar por:",
                           None,
                           QtGui.QApplication.UnicodeUTF8))
        self.pushButtonPesquisar.setToolTip(
                                            QtGui.QApplication.translate(
                                            "Dialog",
                                            "Pesquisar",
                                            None,
                                            QtGui.QApplication.UnicodeUTF8))
